layui.use('element',function () {
    var $ = layui.$;
    $("img").on('click',function(){
       $(this).next('p').find('input').click();
    });

    $("#next").on('click',function(){
        var channels = $("input[name=channels]:checked").val();
        if(channels == 1){
            location.href = "/receipt/payonline?channel=1&receiptId=" + $("#receiptId").val();
        }else if(channels == 2){
            location.href = "/receipt/payonline?channel=2&receiptId=" + $("#receiptId").val();
        }else if(channels == 3){
            location.href = "/receipt/payonline?channel=3&receiptId=" + $("#receiptId").val();
        }
    });
});